<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>宠物之家后台</title>
    <link rel="icon" th:href="@{/img/logo.png}">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.1.1/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-material-design@4.1.1/dist/css/bootstrap-material-design.min.css" integrity="sha384-wXznGJNEXNG1NFsbm0ugrLFMQPWswR3lds2VeinahP8N0zJw9VWSopbjv2x7WCvX" crossorigin="anonymous">
    <style>
        .container{
            margin-top: 2%;
        }
    </style>
</head>
<body>
<!--nav bar-->
<nav class="navbar navbar-expand-md bg-light" id="page-head">
    <a class="navbar-brand" href="#"><i class="fa fa-paw"></i> 宠物之家管理员站</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="collapsibleNavbar">
        <ul class="nav navbar-nav ">
            <li class="nav-item">
                <a class="nav-link active" data-toggle="tab" href="#pet" @Click="get_paging_data('pet')">宠物管理</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" data-toggle="tab" href="#species" @Click="get_paging_data('')">物种管理</a>
            </li>
            </li>
            <span class="navbar-text">
                        &ensp;|&ensp;
                    </span>
            </li>
            <li class="nav-item">
                <a class="nav-link" data-toggle="tab" href="#provider" @Click="get_paging_data('provider')">服务提供商管理</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" data-toggle="tab" href="#business" @Click="get_paging_data('')">服务管理</a>
            </li>
            <li class="nav-item">
            </li>
            <span class="navbar-text">
                        &ensp;|&ensp;
                    </span>
            </li>
                <a class="nav-link" data-toggle="tab" href="#commodity" @Click="get_paging_data('commodity')">商品管理</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" data-toggle="tab" href="#producer" @Click="get_paging_data('')">生产商管理</a>
            </li>
                    <span class="navbar-text">
                        &ensp;|&ensp;
                    </span>
            </li>
            <li class="nav-item">
                <a class="nav-link text-info" data-toggle="tab" >{{ manager_name }}</a>
            </li>
            <li class="nav-item">
                <a class="nav-link text-info" data-toggle="tab" @Click="logout">注销</a>
            </li>
        </ul>
    </div>
</nav>
<div class="container">
    <div class="tab-content">
        <div id="pet" class="container tab-pane fade active show"  th:include="management/manage_pet::#content"></div>
        <div id="species" class="container tab-pane fade"  th:include="management/manage_pet::#content2"></div>
        <div id="business" class="container tab-pane fade"  th:include="management/manage_business::#content2"></div>
        <div id="provider" class="container tab-pane fade"  th:include="management/manage_business::#content"></div>
        <div id="commodity" class="container tab-pane fade"  th:include="management/manage_commodity::#content"></div>
        <div id="producer" class="container tab-pane fade"  th:include="management/manage_commodity::#content2"></div>
        <hr class="bg-secondary">
        <div class="text-dark text-center">
            ©2019&ensp;宠物之家<br>
        </div>
    </div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.min.js"></script>
<script src="https://unpkg.com/popper.js@1.12.6/dist/umd/popper.js"
        integrity="sha384-fA23ZRQ3G/J53mElWqVJEGJzU0sTs+SvzG8fXVWP+kJQ1lwFAOkcUOysnlKJC33U" crossorigin="anonymous"></script>
<script src="https://unpkg.com/bootstrap-material-design@4.1.1/dist/js/bootstrap-material-design.js"
        integrity="sha384-CauSuKpEqAFajSpkdjv3z9t8E7RlpJ1UP0lKM/+NdtSarroVKu069AlsRPKkFBz9" crossorigin="anonymous"></script>
<script defer type="text/javascript" th:src="@{/js/management/manage_base.js}"></script>
<script defer type="text/javascript" th:src="@{/js/management/manage_pet.js}"></script>
<script defer type="text/javascript" th:src="@{/js/management/manage_business.js}"></script>
<script defer type="text/javascript" th:src="@{/js/management/manage_commodity.js}"></script>
</body>
</html>